package com.zoe.onelink.doc.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2021</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2021-11-29
 */
@Data
@ConfigurationProperties(prefix = OnelinkDocProperties.PROPERTY_PREFIX)
public class OnelinkDocProperties {
    public static final String PROPERTY_PREFIX = "onelink.doc";

    private boolean enabled = true;

    /**
     * 将@RequestMapping 转为指定的映射
     */
    private Set<RequestMethod> defaultMethods = Set.of(RequestMethod.POST);

    private Map<String, String> apiGroup = new HashMap<>();

}
